<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<jsp:useBean id="hdr"
	class="org.opportunity.wishlist.travelwish.util.Header" />
<jsp:useBean id="menu"
	class="org.opportunity.wishlist.travelwish.util.MenuWidget" scope="request" />
	
<%-- <jsp:useBean id="fct" class="org.opportunity.wishlist.travelwish.util.Facets" scope="request"/> --%>

<tiles:useAttribute id="key" name="key" classname="java.lang.String" />
<c:set target="${hdr}" property="choice" value="${key}" />
<c:set target="${menu}" property="choice" value="${key}" />

<jsp:useBean id="fct" class="org.opportunity.wishlist.travelwish.util.Facets" scope="request" />
<tiles:useAttribute id="keyFacet" name="keyFacet" classname="java.lang.String" />
<c:set target="${fct}" property="choice" value="${keyFacet}" />

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title><c:out value="${hdr.title}" />
</title>

<%-- <c:forEach var="item" items="${hdr.cssFiles}">
	<link href="${item}" type="text/css" rel="stylesheet" />
</c:forEach>

<c:forEach var="item" items="${hdr.jsFiles}">
	<script src="${item}" type="text/javascript"></script>
</c:forEach> --%>
<s:head />

</head>
<body>
<header>
	<nav id="topNav">
		<tiles:insertAttribute name="menu" />
	</nav>

</header>

	<div>
		<tiles:insertAttribute name="content" />
	</div>

	<div>
		<tiles:insertAttribute name="facet" />
	</div>
		
	<script src="js/jquery.js"></script>
	<script src="js/nocache.js"></script>
	<script src="js/modernizr.js"></script>
	<script src="js/show-output.js"></script>
	<script src="js/test.js"></script>

	
</body>
</html>